package com.tebiecloud.yunst.client.service;

import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.yunst.client.model.vo.BandCardVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 云商通银行卡接口
 */
public interface IYunStBankCardServiceClient {

    /**
     * 实名+绑定银行卡+电子签约
     * @param userId //用户id
     * @param phone //银行卡绑定手机号
     * @param cardNo //卡号
     * @param name //名称
     * @param identityNo //身份证
     * @return
     */
    @PostMapping("/feign/bank/applyBindBankCard")
    ResultBody<BandCardVO> applyBindBankCard(@RequestParam(value = "userId") Long userId, @RequestParam(value = "phone")String phone,
                                             @RequestParam(value = "cardNo")String cardNo, @RequestParam(value = "name")String name,
                                             @RequestParam(value = "identityNo")String identityNo,@RequestParam(value = "openId")String openId);

}
